//
//  UIView+MAAdv.h
//  MateAdv
//
//  Created by 茶 on 2023/9/8.
//

#import <UIKit/UIKit.h>
#import <Masonry/Masonry.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (MAAdv)

@property (nonatomic, assign) CGFloat ma_cornerRadius;
#pragma mark - 设置部分圆角

- (void)ma_addRoundedCorners:(UIRectCorner)corners
                   withRadii:(CGSize)radii;
- (void)ma_addRoundedCorners:(UIRectCorner)corners
                  withRadiif:(CGFloat)radiif;
- (void)ma_addRoundedCorners:(UIRectCorner)corners
                  withRadiif:(CGFloat)radiif
                 borderWidth:(CGFloat)borderWidth
                 borderColor:(UIColor *)borderColor;
@end

@interface MASConstraint (MAAdv)

- (MASConstraint *(^)(CGFloat))ma_offset;
- (MASConstraint *(^)(CGFloat))ma_h_offset;

#define MAMasLeft(_f_)  make.left.MA_offset(_f_)
#define MAMasRight(_f_)  make.right.MA_offset(_f_)
#define MAMasTop(_f_)  make.top.MA_offset(_f_)
#define MAMasBottom(_f_)  make.bottom.MA_offset(_f_)

@end

NS_ASSUME_NONNULL_END
